//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CEffectCompiled10.cpp>
///	@path	~/src/graphics/dx10/
///	@date	2008/12/22
///	@desc	.

#include "config/config.h"

#include "lib/utilities/debug.h"
#include "lib/system/thread_debug.h"

#include "graphics/DxHelpers.h"
#include "graphics/dx10/CEffectCompiled10.h"

namespace xeres {

	IMPL_IOBJECT_CLASS( CEffectCompiled10 );

	// ctor
	CEffectCompiled10::CEffectCompiled10( RefWeak<IEffect> effect , ID3D10Blob * buffer )
		: m_effect( effect )
		, m_buffer( buffer )
	{
	}

	CEffectCompiled10::~CEffectCompiled10( void )
	{
	}

	RefPass<IEffect> CEffectCompiled10::GetEffect( void )
	{
		return m_effect;
	}

	size_t CEffectCompiled10::GetCompiledSize( void )
	{
		return m_buffer->GetBufferSize();
	}

	const void * CEffectCompiled10::GetCompiledData( void )
	{
		return m_buffer->GetBufferPointer();
	}

} // namespace xeres
